Socket
Socket
Sign inDemoInstall

@skills17/static-task-server

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skills17/static-task-server

Serves static task files.


Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

skills17/static-task-server

Serves static task files.

Table of contents

  • Installation
  • Usage
  • License

Installation

npm install @skills17/static-task-server

Usage

A TaskConfig instance of the @skills17/task-config package can be passed to the Server constructor.

import Server from '@skills17/static-task-server';

const server = new Server(taskConfig);
await server.serve();

This will start a static file server on the address and port specified in the task configuration. The address under which the task is reachable will be printed to the console. To disable the console output, pass false as a parameter to the serve method.

Later, the server can be stopped again by calling the stop method:

await server.stop();

License

MIT

FAQs

Package last updated on 03 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc